package su.demo.config.datasourceConfigs;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author SuZuQi
 * @title: MultipleDataSource
 * @projectName ssm_multipledatasources
 * @description: TODO
 * @date 2019/9/5
 */
public class MultipleDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSource() ;
    }
}
